//
//  BVBMKAddressCell.m
//  BuyVegetables1
//
//  Created by 叶思超 on 15/11/2.
//  Copyright (c) 2015年 叶思超. All rights reserved.
//

#import "BVBMKAddressCell.h"

@interface BVBMKAddressCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (weak, nonatomic) IBOutlet UILabel *detailLabel;
@end

@implementation BVBMKAddressCell

- (void)awakeFromNib {
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

+ (instancetype)cell {
    return [[[NSBundle mainBundle] loadNibNamed:@"BVBMKAddressCell" owner:nil options:nil] lastObject];
}

- (void)setPoiInfo:(BMKPoiInfo *)poiInfo {
    _poiInfo = poiInfo;
   
    // 大名称
    self.titleLabel.text = poiInfo.name;
    
    // 详细地址
    self.detailLabel.text = poiInfo.address;
  
}
@end
